package com.kystar.muxplayer.protocol.code.set;

import com.kystar.muxplayer.model.Source;
import com.kystar.muxplayer.protocol.CodeCmd;

public class CS06_SyncSource extends CodeCmd {
//    0:关闭   1:开启
    private CS06_SyncSource(int sourceId,int open) {
        super(open,sourceId);
    }

    @Override
    public byte getCode() {
        return 0x06;
    }

    public static CS06_SyncSource create(Source source,boolean enable) {
return new CS06_SyncSource(source.getSourceId(),enable?1:0);
    }

}
